package com.ruoyi.park.service;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.park.domain.BuiBuilding;

import java.util.List;

/**
 * 楼栋Service接口
 * 
 * @author cjie
 * @date 2021-07-20
 */
public interface IBuiBuildingService {
    /**
     * 查询楼栋
     * 
     * @param id 楼栋ID
     * @return 楼栋
     */
     BuiBuilding selectBuiBuildingById(String id);

    /**
     * 查询楼栋列表
     * 
     * @param buiBuilding 楼栋
     * @return 楼栋集合
     */
     List<BuiBuilding> selectBuiBuildingList(BuiBuilding buiBuilding);

    /**
     * 新增楼栋
     * 
     * @param buiBuilding 楼栋
     * @return 结果
     */
    AjaxResult insertBuiBuilding(BuiBuilding buiBuilding);

    /**
     * 修改楼栋
     * 
     * @param buiBuilding 楼栋
     * @return 结果
     */
    AjaxResult updateBuiBuilding(BuiBuilding buiBuilding);

    /**
     * 批量删除楼栋
     * 
     * @param ids 需要删除的楼栋ID
     * @return 结果
     */
    AjaxResult deleteBuiBuildingByIds(String[] ids);

    /**
     * 删除楼栋信息
     * 
     * @param id 楼栋ID
     * @return 结果
     */
     int deleteBuiBuildingById(String id);

    /**
     * 校验楼栋编号是否唯一
     *
     * @param buiBuilding 楼栋信息
     * @return 结果
     */
    String checkBuildingNumUnique(BuiBuilding buiBuilding);
}
